import { Table, Column, Model, AllowNull, AutoIncrement, PrimaryKey, Comment, Unique, CreatedAt, UpdatedAt, DeletedAt, DataType, NotEmpty } from 'sequelize-typescript'
import { Optional } from 'sequelize';
export interface MemberAttributes {
    id?: number;
    createdAt?: Date;
    updatedAt?: Date;
    deletionDate?: Date;
    mName?: string;
    tel?: string;
}
export interface MemberCreationAttributes extends Optional<MemberAttributes, 'id'> { }
@Table({
    tableName: 'member'
})
export default class Member extends Model<MemberAttributes, MemberCreationAttributes> {
    @Comment('主键id')
    @AllowNull(false)
    @NotEmpty
    @AutoIncrement
    @PrimaryKey
    @Unique
    @Column({
        type: DataType.INTEGER
    })
    id?: number;

    @Comment('创建时间')
    @CreatedAt
    @Column({
        type: DataType.DATE
    })
    createdAt?: Date;

    @Comment('更新时间')
    @UpdatedAt
    @Column({
        type: DataType.DATE
    })
    updatedAt?: Date;

    @Comment('删除时间')
    @DeletedAt
    @Column({
        type: DataType.DATE
    })
    deletionDate?: Date;

    @Comment('会员名字')
    @Column({
        type: DataType.STRING
    })
    mName?: string;

    @Comment('会员手机')
    @Column({
        type: DataType.STRING
    })
    tel?: string;

}